package com.xy.config;

import com.xy.bean.Monster;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 15:17
 * @description
 */
@Configuration
public class ProtoTypeConfig {
    @Scope("prototype")
    @Bean
    public Monster monster() {
        return new Monster();
    }
}
